import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import Antd from 'ant-design-vue';
import { createPinia } from 'pinia';
import router from "./router/router.js";
import { useUserStore } from "./stores/userStore.ts";

const app = createApp(App);
const pinia = createPinia();
app
.use(Antd)
.use(router)
.use(pinia)
.mount('#app')


const userStore = useUserStore();
await userStore.checkLoginStatus();